﻿using System;
using UnityEngine;

// Token: 0x020001B3 RID: 435
public class CutAct_Anime : CutAction
{
	// Token: 0x06000B51 RID: 2897 RVA: 0x00042464 File Offset: 0x00040664
	public CutAct_Anime(CutScene cutScene) : base(cutScene, CUTACT.ANIME)
	{
	}

	// Token: 0x06000B52 RID: 2898 RVA: 0x0004247C File Offset: 0x0004067C
	public CutAct_Anime(CutScene cutScene, float time, string chara, string state, float duration) : base(cutScene, CUTACT.ANIME, time)
	{
		this.chara = chara;
		this.state = state;
		this.duration = duration;
	}

	// Token: 0x06000B53 RID: 2899 RVA: 0x000424AC File Offset: 0x000406AC
	public override object Clone()
	{
		return new CutAct_Anime(this.cutScene);
	}

	// Token: 0x06000B54 RID: 2900 RVA: 0x000424BC File Offset: 0x000406BC
	public override void Load(TagText.Element element, int order)
	{
		base.Load(element, order);
		element.GetVal(ref this.chara, "chara", 0);
		element.GetVal(ref this.state, "state", 0);
		element.GetVal(ref this.duration, "duration", 0);
	}

	// Token: 0x06000B55 RID: 2901 RVA: 0x0004250C File Offset: 0x0004070C
	public override void Save(TagText.Element element)
	{
		base.Save(element);
		element.AddAttribute("chara", this.chara);
		element.AddAttribute("state", this.state);
		element.AddAttribute("duration", this.duration.ToString());
	}

	// Token: 0x06000B56 RID: 2902 RVA: 0x00042560 File Offset: 0x00040760
	public override void Action(bool skip)
	{
		Human human = this.cutScene.GetHuman(this.chara);
		Animator anime = human.body.Anime;
		anime.CrossFadeInFixedTime(this.state, this.duration, 0);
	}

	// Token: 0x04000B9E RID: 2974
	public string chara;

	// Token: 0x04000B9F RID: 2975
	public string state;

	// Token: 0x04000BA0 RID: 2976
	public float duration = 0.5f;
}
